﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace WebStudio.Mvc.Core.Filter
{
    /// <summary>
    /// IResultFilter
    /// </summary>
    public interface IResultFilter
    {
        
        // 方法

        #region OnResultExecuting
        /// <summary>
        /// 在Controller 里面的action method调用处理玩前执行
        /// </summary>
        /// <param name="filterContext"></param>
        void OnResultExecuting(ResultExecutingContext filterContext);
        
        #endregion

        #region OnResultExecuted
        /// <summary>
        /// 在Controller 里面的action method调用处理玩后执行
        /// </summary>
        /// <param name="filterContext"></param>
        void OnResultExecuted(ResultExecutedContext filterContext);
        
        #endregion

    }
}
